<template>
  <div class="no-data">
    <img :src="imgUrl" alt="" srcset="" />
    <span class="desc">{{ text }}</span>
  </div>
</template>

<script setup>
import { defineProps } from 'vue';
import unFollow from '@/assets/images/industryMap/notData.png';

const props = defineProps({
  imgUrl: {
    type: String,
    default: unFollow,
  },
  text: {
    type: String,
    default: '暂无数据',
  },
});
</script>

<style lang="scss" scoped>
.no-data {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  img {
    height: 200px;
    display: flex;
  }
  .desc {
    margin-top: 4px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 24px;
    color: #888888;
    line-height: 35px;
  }
}
</style>
